#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define db double
using namespace std;
int r[100005];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    scanf("%d",&n);
    for (int i = 1;i <= n;i++)
    {
        scanf("%d",&r[i]);
    }
    sort(r + 1,r + n + 1);
    int idx = 1,ans = n;
    for (int i = 1;i <= n;i++)
    {
        if (r[i] > r[idx])
        {
            idx++;
            ans--;
        }
    }
    printf("%d\n",ans);
    return 0;
}
